/*
 * @Author: 张小平
 * @Date:   2025-05-01
 * @Email:  qqshuqian@163.com
 * @Copyright © 2024 aseyun. All rights reserved.
 */
import Store from '@/framework-core/store/'
import website from '@/framework-core/config/website'
export default [
    {
  path: '/login',
  name: 'login',
  component: () =>
    // Store.getters.isMacOs ? import('@/mac/login.vue') : import('@/page/login/index.vue'),
  import('@/framework-core/page/login/index.vue'),
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
  {
    path: '/',
    name: '主页',
    redirect:  (website.front) ? '/home':'/admin',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: true
    }
  },

{
  path: '/lock',
  name: '锁屏页',
  component: () =>
    Store.getters.isMacOs ? import('@/framework-core/mac/lock.vue') : import('@/framework-core/page/lock/index.vue'),
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  path: '/404',
  component: () =>
    import( /* webpackChunkName: "page" */ '@/framework-core/components/error-page/404.vue'),
  name: '404',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }

},

  {
  path: '/403',
  component: () =>
    import( /* webpackChunkName: "page" */ '@/framework-core/components/error-page/403.vue'),
  name: '403',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
{
  path: '/500',
  component: () =>
    import( /* webpackChunkName: "page" */ '@/framework-core/components/error-page/500.vue'),
  name: '500',
  meta: {
    keepAlive: true,
    isTab: false,
    isAuth: false
  }
},
  {
    path: '/auth',
    component: () =>
        import( /* webpackChunkName: "page" */ '@/framework-core/page/login/authredirect.vue'),
    name: '第三方登录',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },

  {
    path: '/toCasLogin',
    component: () =>
        import( /* webpackChunkName: "page" */ '@/framework-core/page/login/cas/toCasLogin.vue'),
    name: 'CAS登录',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    path: '/toCasAuth',
    component: () =>
        import( /* webpackChunkName: "page" */ '@/framework-core/page/login/cas/casLogin.vue'),
    name: 'CAS登录认证',
    meta: {
      keepAlive: true,
      isTab: false,
      isAuth: false
    }
  },
  {
    hide: true,
    path: '/:pathMatch(.*)*',
    component: () => import('@/framework-core/components/error-page/404.vue'),
  }
]
